package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.PostImg;
import com.net.tkc.pro.impl.PictureImpl;
import com.net.tkc.pro.impl.PostImgImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PostImgService{
    @Resource
    PostImgImpl postImg;
    public int delImg(int id) {
        return postImg.delImg(id);
    }

    public int addImg(PostImg postImg2) {
        return postImg.addImg(postImg2);
    }

    public List<PostImg> getImgList(int postid) {
        return postImg.getImgList(postid);
    }
}
